package com.xuetang9.t9.xinhuaxia.service.impl;

import com.xuetang9.t9.xinhuaxia.beans.Chat;
import com.xuetang9.t9.xinhuaxia.mappers.ChatMapper;
import com.xuetang9.t9.xinhuaxia.service.IChatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 陈焱
 * @version 1.0
 * @desc
 * @time 2020/3/10 上午 11:31
 * @copyright liyq
 * @address 成都西部国际金融中心2栋2201
 **/
@Service
public class ChatService  implements IChatService {
    @Autowired
    private ChatMapper chatMapper;
    @Override
    public boolean add(Chat chat) {
        return chatMapper.insert(chat)>0;
    }
}
